package model;

public class NumberList<T> {
	private T t;
	
	public NumberList(T temp) {
		t = temp;
	}
	
	public void print() {
		System.out.println("T: " + t);
	}
	
	public <T, E> void print2(T t, E e) {
		System.out.println("T: " + t + ", E: " + e);
	}
	
	public static void main(String[] args) {
		NumberList<Integer> list = new NumberList<Integer>(10);
		list.print();
		
		NumberList<String> list2 = new NumberList<String>("HUY RUA");
		list2.print();
		
		list.print2(new Integer(6), new Integer(8));
	}

}
